Package com.cisco.pt.mu
Class MULinkUpdStatusMessage
java.lang.Object
com.cisco.pt.impl.LTVImpl
com.cisco.pt.mu.MultiUserMessage
com.cisco.pt.mu.MULinkUpdStatusMessage
- All Implemented Interfaces:
LTV
This is a name update message from PT.
-
Field Summary
FieldsFields inherited from class com.cisco.pt.mu.MultiUserMessage
ePtmpMUMsg, PTMP_TYPE_MUCONIN, PTMP_TYPE_MUCONOUT, PTMP_TYPE_MULINKUPDATE, PTMP_TYPE_MULINKUPDATESTATUS, PTMP_TYPE_MUNAMEUPDATE, PTMP_TYPE_MUNEGOREQ, PTMP_TYPE_MUNEGORESP, PTMP_TYPE_MUPDU, PTMP_TYPE_MUPORTADV, PTMP_TYPE_MUSAVENETREQ, PTMP_TYPE_MUSAVENETRESPFields inherited from interface com.cisco.pt.LTV
AUTH_CHALLENGE_TYPE, AUTH_REQUEST_TYPE, AUTH_RESPONSE_TYPE, AUTH_STATUS_TYPE, DISCONNECT_MESSAGE_TYPE, IPC_ERROR_TYPE, IPC_EVENT_SUBSCRIPTION_TYPE, IPC_EVENT_TYPE, IPC_MESSAGE_TYPE, IPC_RESPONSE_TYPE, KEEP_ALIVE_MESSAGE_TYPE, MULTI_USER_MESSAGE_TYPE, NEGOTIATION_MESSAGE_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionMULinkUpdStatusMessage(int linkOpId, int linkUpdateStatus) This function creates a link update status message for the MU protocol. -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(PtmpBuffer buffer) Serializes the message into a PtmpBuffer.intReturns the link operation ID.intReturns the link update status.static MULinkUpdStatusMessagegetMessage(EncodedBuffer buffer) A deserialization function that creates a new message from a PtmpBuffer object.voidsetLinkOpId(int linkOpId) Sets the link operation ID.voidsetLinkUpdateStatus(int linkUpdateStatus) Sets the link update status.toString()Converts this message into a string for debugging purposesMethods inherited from class com.cisco.pt.mu.MultiUserMessage
isConInput, isConOutput, isLinkUpdate, isLinkUpdateStatus, isMuMessage, isPDU, isPortAdv, isSaveRequest, isSaveResponseMethods inherited from class com.cisco.pt.impl.LTVImpl
encodeTypeAndPayload, getLength, getMessageId, getNextMessageId, getType, getValue, hasResponse, isEvent, isResponse, setLength, setType, setValue
-
Field Details
-
linkOpId
public int linkOpId -
linkUpdateStatus
public int linkUpdateStatus
-
-
Constructor Details
-
MULinkUpdStatusMessage
public MULinkUpdStatusMessage(int linkOpId, int linkUpdateStatus) This function creates a link update status message for the MU protocol.- Parameters:
linkOpId- The link operation IDlinkUpdateStatus- The link update status
-
-
Method Details
-
getMessage
A deserialization function that creates a new message from a PtmpBuffer object.- Parameters:
buffer- The PtmpBuffer to get from- Returns:
- A new instance of a MULinkUpdStatusMessage class get from the buffer
-
encodeTypeAndPayload
Serializes the message into a PtmpBuffer.- Parameters:
buffer- The PtmpBuffer to get the message into
-
getLinkOpId
public int getLinkOpId()Returns the link operation ID.- Returns:
- The link operation ID
-
setLinkOpId
public void setLinkOpId(int linkOpId) Sets the link operation ID.- Parameters:
linkOpId- The link operation ID
-
getLinkUpdateStatus
public int getLinkUpdateStatus()Returns the link update status.- Returns:
- The link update status
-
setLinkUpdateStatus
public void setLinkUpdateStatus(int linkUpdateStatus) Sets the link update status.- Parameters:
linkUpdateStatus- The link update status
-
toString
Converts this message into a string for debugging purposes- Overrides:
toStringin classMultiUserMessage- Returns:
- A string representation of this message
-